Core: Improve error for null/unknown schema types in table creation#2843
Merged
kevinjqliu merged 2 commits intoapache:mainfrom Jan 8, 2026
Merged
Core: Improve error for null/unknown schema types in table creation#2843kevinjqliu merged 2 commits intoapache:mainfrom
kevinjqliu merged 2 commits intoapache:mainfrom
Conversation
kevinjqliu
approved these changes
Dec 24, 2025
Contributor
kevinjqliu
left a comment
There was a problem hiding this comment.
LGTM! Thanks pa.null() has been a long standing issue. This should provide some clarity
Comment on lines
+215
to
+217
| assert "Null type" in message | ||
| assert "n1" in message | ||
| assert "format-version=3" in message |
Contributor
There was a problem hiding this comment.
this is the full error message
'Null type (pa.null()) is not supported in Iceberg format version 2. Field: n1. Use a concrete type (string, int, boolean, etc.) or set format-version=3.'
geruh
reviewed
Dec 25, 2025
Contributor
Author
Contributor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
nulltype is used with format version < 3, including the field path and a hint to use a concrete type or format-version 3.Why
Testing
Closes #2539